import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:sph_shipper/Main/Settings/SureCancel.dart';

import '../../AppConfig/Config.dart';
import '../../AppConfig/RouteAct.dart';
import '../../l10n/messages.dart';

class AccountCancellation extends StatefulWidget {
  const AccountCancellation({super.key});

  @override
  State<AccountCancellation> createState() => _AccountCancellationState();
}

class _AccountCancellationState extends State<AccountCancellation> {
  @override
  Widget build(BuildContext context) {
    var messages = AppLocalizations.of(context)!;
    return Scaffold(
      backgroundColor: MyColors.backgreyColor,
      appBar: AppBar(
        backgroundColor: Colors.white,
        centerTitle: true,
        title: Text(messages['账户注销'],style: TextStyle(fontWeight: FontWeight.w300,fontSize: 16.sp),),
      ),
      body: ListView(
        children: [
          SizedBox(height: 18.h,),
          Text("   "+messages['注销']+"188*****8888"+messages['的货主账户'],style: TextStyle(color: Colors.black,fontSize: 20.sp,fontWeight: FontWeight.w600),),
          SizedBox(height: 8.h,),
          Text("   "+messages["请确保所有的交易已完结且无纠纷"],style: TextStyle(color: Colors.black,fontSize:16.sp ),),
          SizedBox(height: 35.h,),
          Container(
            height: 161.h,
            margin: EdgeInsets.only(left: 8.w,right: 8.w),
            decoration: BoxDecoration(
                borderRadius: BorderRadius.all(Radius.circular(10)),
              gradient: LinearGradient(
                colors: [Color.fromRGBO(251,236,228,1), Colors.white], // 渐变颜色数组
                begin: Alignment.topCenter, // 渐变开始的位置
                end: Alignment.bottomCenter, // 渐变结束的位置
              ),

            ),
            child: Column(
              children: [
                SizedBox(height: 12.h,),
                Row(

                  children: [

                    SizedBox(width: 18.w,),
                    Image.asset("lib/Images/PersonCenter/注销提醒icon.png",width: 20.w,height: 20.h,),
                    SizedBox(width: 8.w,),
                    Text(messages["注销后，以下信息将被清空且无法找回"],style: TextStyle(color: MyColors.themeColor,fontSize:15.sp,fontWeight: FontWeight.w600),)
                  ],
                ),
                SizedBox(height:20.h ,),
                Row(
                  children: [
                    SizedBox(width: 18.w,),
                    Text(messages["1.身份信息"],style: TextStyle(color: Colors.black,fontSize: 16.sp,fontWeight: FontWeight.w600),)
                  ],
                ),
                SizedBox(height: 8.h,),
                Row(
                  children: [
                    SizedBox(width: 18.w,),
                    Text(messages["2.账户信息"],style: TextStyle(color: Colors.black,fontSize: 16.sp,fontWeight: FontWeight.w600),)
                  ],
                ),
                SizedBox(height: 8.h,),
                Row(
                  children: [
                    SizedBox(width: 18.w,),
                    Text(messages["3.交易信息"],style: TextStyle(color: Colors.black,fontSize: 16.sp,fontWeight: FontWeight.w600),)
                  ],
                ),
              ],
            ),
          ),
          SizedBox(height:50.h ,),
          GestureDetector(
            child: Container(
              margin: EdgeInsets.only(left: 15.w,right: 15.w),
              height: 40.h,
              decoration: BoxDecoration(
                color: MyColors.themeColor,
                  borderRadius: BorderRadius.all(Radius.circular(30))
              ),
              child: Center(

                child: Text("下一步",style: TextStyle(color: Colors.white,fontSize: MyFontSizes.sixtyText.sp),),
              ),
            ),
            onTap: (){
              Navigator.push( context, FadeRoute(page:SureCancel()));
            },
          ),
        ],
      ),
    );
  }
}
